package com.cxb.demotest.annotations;

import static java.lang.annotation.ElementType.METHOD;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Xbao
 * @version 1.0
 * @description 接口防刷注解
 * @date 2021/3/9 11:00
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(METHOD)
public @interface AccessLimit {

  int seconds();
  int maxTimes();
  boolean needLogin() default true;

}
